package com.stylefeng.guns.rest.proxy.db;

public class DataSourceContextHolder {
    public static final ThreadLocal<String> SourceContext = new ThreadLocal<>();

    public static String getDbType() {
        return SourceContext.get();
    }

    public static void setDbType(String dbType) {
        SourceContext.set(dbType);
    }

    public static void removeDbType(String dbType) {
        SourceContext.remove();
    }

}
